package first;


import config.FirstConfig;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author: ZhouBert
 * @date: 2019/9/6
 * @description:		Gradle 添加子模块失败
 * https://blog.csdn.net/bskfnvjtlyzmv867/article/details/81171802		Spring源码——IDEA读Spring源码环境搭建	//这里有关于如何在gradle 中添加子模块
 */
public class BeanFactoryTest {

	//@Test
	public void testSimpleLoad(){
		System.out.println("1");
	}


	/**
	 * 2020年7月23日14:13:22 测试成功！
	 *
	 */
	public static void testAnnotationConfigApplication(){
		ApplicationContext context = new AnnotationConfigApplicationContext(FirstConfig.class);
		MyTestBean bean = context.getBean("myTestBean", MyTestBean.class);

		System.out.println(bean.getTestStr());
	}

	public static void main(String[] args) {
		BeanFactoryTest.testAnnotationConfigApplication();
	}
}
